package com.example.SearchAround_JC.jc_manager;

/**
 * Created by Administrator on 2014/12/3.
 */
public class Distance {
    //优化距离显示
    public String deDistance(String diatance) {
        int a = Integer.parseInt(diatance);
        if (a > 1000) {
            int qian = a / 1000;
            int bai = (a % 1000) / 100;
            return qian + "." + bai + "km";
        } else {
            return diatance + "m";
        }
    }
}
